import { put, post, get } from '@/security/request'
import { Application_Form } from '@/utils/keyWord'

export function getPageOfWalletListApi(data: any): Promise<IPageResult<any>> {
    return get("/admin/wallet/list/getPage",  data);
}

export function getPageOfWalletReportApi(data: any): Promise<IPageResult<any>> {
    return get("/admin/wallet/report/getPage",  data);
}

export function getPageOfDetailApi(data: any): Promise<IPageResult<any>> {
    return get("/admin/wallet/detail/getPage",  data);
}

export function getOneApi(data: any): Promise<IRespResult<any>> {
    return get("/admin/wallet/getOne",  data, Application_Form);
}

export function rechargeApi(data: any): Promise<IRespResult<any>>{
    return post("/admin/wallet/recharge", data, Application_Form)
}

export function balanceApi(data: any): Promise<IRespResult<any>>{
    return post("/admin/wallet/balance", data, Application_Form)
}
